/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.storage.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

import java.util.Date;

/**
 * 收货地址Entity
 */
@Table(name="biz_address", alias="a", columns={
		@Column(name="id", attrName="id", label="唯一标识", isPK=true),
		@Column(name="trans_member_id", attrName="transMemberId", label="转发会员Id"),
		@Column(name="member_id", attrName="memberId", label="会员Id"),
		@Column(name="name", attrName="name", label="名称", queryType=QueryType.LIKE),
		@Column(name="phone", attrName="phone", label="手机号"),
		@Column(name="province", attrName="province", label="省份"),
		@Column(name="city", attrName="city", label="城市"),
		@Column(name="county", attrName="county", label="县镇"),
		@Column(name="address", attrName="address", label="具体地址"),
		@Column(name="is_default", attrName="isDefault", label="是否默认"),
		@Column(name="default_time", attrName="defaultTime", label="默认修改时间"),
		@Column(name="is_deleted", attrName="isDeleted", label="是否删除"),
		@Column(name="create_date", attrName="createDate", label="创建时间", isQuery=false),
		@Column(name="update_date", attrName="updateDate", label="更新时间", isQuery=false)
	}, orderBy="a.update_date DESC"
)
public class Address extends DataEntity<Address> {
	
	private static final long serialVersionUID = 1L;
	private String transMemberId;		// 转发会员Id
	private String memberId;		// 会员Id
	private String name;		// 名称
	private String phone;		// 手机号
	private String province;		// 省份
	private String city;		// 城市
	private String county;		// 县镇
	private String address;		// 具体地址
	private Boolean isDefault;		// 是否默认
	private Date defaultTime;		// 默认修改时间
	private Boolean isDeleted;		// 是否删除

	public Address() {
		this(null);
	}

	public Address(String id){
		super(id);
	}

	public String getTransMemberId() {
		return transMemberId;
	}

	public void setTransMemberId(String refMemberId) {
		this.transMemberId = refMemberId;
	}

	public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getCounty() {
		return county;
	}

	public void setCounty(String county) {
		this.county = county;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Boolean getIsDefault() {
		return isDefault;
	}

	public void setIsDefault(Boolean isDefault) {
		this.isDefault = isDefault;
	}

	public Date getDefaultTime() {
		return defaultTime;
	}

	public void setDefaultTime(Date defaultTime) {
		this.defaultTime = defaultTime;
	}

	public Boolean getIsDeleted() {
		return isDeleted;
	}

	public void setIsDeleted(Boolean isDeleted) {
		this.isDeleted = isDeleted;
	}
	
}
